import request from '@/utils/request'

// 查询客户基本信息列表
export function pageListCustom(query) {
  return request({
    url: '/lims/contract/custom/pageList',
    method: 'get',
    params: query
  })
}

// 查询客户基本信息详细
export function getCustom(customId) {
  return request({
    url: '/lims/contract/custom/' + customId,
    method: 'get'
  })
}

// 新增客户基本信息
export function addCustom(data) {
  return request({
    url: '/lims/contract/custom',
    method: 'post',
    data: data
  })
}

// 修改客户基本信息
export function updateCustom(data) {
  return request({
    url: '/lims/contract/custom',
    method: 'put',
    data: data
  })
}

// 删除客户基本信息
export function delCustom(customId) {
  return request({
    url: '/lims/contract/custom/delete/' + customId,
    method: 'delete'
  })
}


// 新增任务检测点位
export function addPoint(data) {
  return request({
    url: '/lims/contract/point',
    method: 'post',
    data: data
  })
}

// 查询客户基本信息详细
export function queryJcxmList(mJId) {
  return request({
    url: '/lims/contract/taskJcxm/' + mJId,
    method: 'get'
  })
}

export function queryPackageList(query) {
  return request({
    url: '/lims/store/package/list',
    method: 'get',
    params: query
  })
}

export function queryRightPonitTableAPI(pointId) {
  return request({
    url: `/lims/contract/taskJcxm/` + pointId,
    method: 'get'
  })
}
